<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>图书详情</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            margin: 0;
            padding: 20px;
            background-color: #f4f4f4; /* 添加背景颜色 */
        }

        .book-details {
            width: 80%;
            max-width: 600px;
            background-color: #fff; /* 添加背景颜色 */
            border: 1px solid #ddd; /* 修改边框颜色 */
            padding: 20px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 增强阴影效果 */
            border-radius: 8px; /* 添加圆角 */
        }

        h2 {
            text-align: center;
            color: #333; /* 修改标题颜色 */
        }

        .detail-row {
            margin-bottom: 15px;
            font-size: 16px; /* 修改字体大小 */
            line-height: 1.5; /* 修改行高 */
        }

        .detail-row label {
            font-weight: bold;
            display: inline-block;
            width: 100px;
            color: #666; /* 修改标签颜色 */
        }

        /* 添加按钮样式 */
        .btn-primary {
            display: inline-block;
            padding: 10px 20px;
            font-size: 16px;
            font-weight: bold;
            color: #fff;
            background-color: #007bff; /* 修改按钮背景颜色 */
            border: none;
            border-radius: 4px; /* 添加圆角 */
            text-decoration: none;
            text-align: center;
            cursor: pointer;
            transition: background-color 0.3s ease; /* 添加过渡效果 */
        }

        .btn-primary:hover {
            background-color: #0056b3; /* 修改按钮悬停时的背景颜色 */
        }
    </style>
</head>
<body>

<div class="book-details">
    <h2 th:text="${book.name}">图书标题（占位符）</h2>

    <div class="detail-row">
        <label>ID:</label>
        <span th:text="${book.id}">ID占位符</span>
    </div>

    <div class="detail-row">
        <label>作者:</label>
        <span th:text="${book.author}">作者占位符</span>
    </div>

    <div class="detail-row">
        <label>出版社:</label>
        <span th:text="${book.press}">出版社占位符</span>
    </div>

    <div class="detail-row">
        <label>状态:</label>
        <span th:text="${book.status}">状态占位符</span>
    </div>

    <!-- 可以根据需要添加更多详细信息 -->

    <div class="detail-row">
        <a href="/books" class="btn-primary">返回图书列表</a>
    </div>
</div>

</body>
</html>